/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.loja.view.component.composition;

import br.com.loja.view.component.factory.ViewHadler;
import javax.swing.JCheckBox;

/**
 *
 * @author DavidLuiz
 */
public class BooleanToOne extends JCheckBox implements ViewHadler<Boolean> {

    @Override
    public void setValueModel(Boolean value) {
        setSelected(value);
    }

    @Override
    public Boolean getValueModel() {
        return isSelected();
    }

}
